import Vue from 'vue'
import Vuex from 'vuex'

// 宠物
import modulePet from './m_pet.js'

// 用户状态管理
import moduleUser from './m_user.js'

// 店
import moduleShop from './m_shop.js'

// 优惠劵
import moduleCommunity from './m_community.js'

// 购物车模块
import moduleCart from './m_cart.js'


Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    m_pet: modulePet,
    m_user: moduleUser,
    m_shop: moduleShop,
    m_community: moduleCommunity,
    m_cart: moduleCart
  },
})

export default store
